<template>
    <div class="tip">
        <div class="container">
            <span class="text">{{ label }}</span>
        </div>
    </div>
</template>

<script setup lang="ts">
// interface Props {
//     label: string
// }
defineProps<{
    label:string
}>()

</script>
<style scoped lang="css">
.tip {
    color: #fff;
    display: flex;
    flex-direction: column;
    font-size: 18px;
}
.container {
    position: relative;
    display: inline-block;
    padding-bottom: 5px; /* 设置下方间距，用于显示横线 */
}

.text {
    display: inline-block;
    position: relative;
}
.text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;  /* 填充整个span元素的宽度 */
    background: #8252B3;
    height: 3px;
    border-radius: 4px;
    bottom: -10px;
}
</style>